﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PCR.Base
{
    /// <summary>
    /// Object implement this interface should check the data itself
    /// is valid or not
    /// </summary>
    public interface ICheckDataValid
    {
        /// <summary>
        /// Check the data is valid or not
        /// </summary>
        /// <returns>true is valid, false is invalid</returns>
        bool IsValid();
        
        /// <summary>
        /// Get the last error string
        /// </summary>
        /// <returns>The error string</returns>
        string GetErrorString();
    }
}
